// pages/detail/detail.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    team1:'default',
    team2:'default',
    listData1:[
      {"name":"艾尔-霍福德","scoring":"2","rebound":"10","assist":"3"},
      {"name":"马库斯-斯玛特","scoring":"21","rebound":"5","assist":"7"},
      {"name":"杰伦-布朗","scoring":"22","rebound":"5","assist":"4"},
      {"name":"杰森-塔图姆","scoring":"46","rebound":"9","assist":"4"},
      {"name":"格兰特-威廉姆斯","scoring":"2","rebound":"5","assist":"1"},
      {"name":"德里克-怀特","scoring":"9","rebound":"5","assist":"2"},
      {"name":"丹尼尔-泰斯","scoring":"4","rebound":"2","assist":"0"}
    ],
    listData2:[
      {"name":"扬尼斯-阿德托昆博","scoring":"44","rebound":"20","assist":"6"},
      {"name":"朱-霍勒迪","scoring":"17","rebound":"2","assist":"4"},
      {"name":"格雷森-阿伦","scoring":"3","rebound":"3","assist":"1"},
      {"name":"韦斯利-马修斯","scoring":"4","rebound":"2","assist":"2"},
      {"name":"布鲁克-洛佩斯","scoring":"6","rebound":"3","assist":"0"},
      {"name":"帕特-康诺顿","scoring":"14","rebound":"4","assist":"2"},
      {"name":"博比-波蒂斯","scoring":"4","rebound":"10","assist":"0"}
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    this.setData({
      team1:options.team1,
      team2:options.team2
    }
    )
  }
})